home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus Special 13
/
AMIGAplus Sonderheft 13 (1998)(ICP)(DE)[!].iso
/
rexx
/
factorial.scrx
< prev
next >
Wrap
Text File
|
1997-11-01
|
436b
|
23 lines
/* SciCalc Scientific Calculator
by Brian Savage Copyright 1997
Arexx script to find the factorial of an integer
less than 70. x >= 0; x<70
IMPORTANT: REQUIRES REXXMATHLIB.LIBRARY
*/
if ~show("l", "rexxmathlib.library") then
if ~addlib("rexxmathlib.library", 0, -30,0) then
do
address command
say "Can't find RexxMathLib"
end
options results
getval
parse var result x
putval fact(x)